<template>
  <div class="main">
    <div class="http404">
      <div class="not-found">
        <div class="not-found__oops">404 NOT FOUND!</div>
        <div class="not-found__headline">{{ message }}</div>
        <div class="not-found__info">请检查您输入的网址是否正确，请点击以下按钮返回</div>
        <a href="" class="not-found__return-home">返回首页</a>
        <span @click="goBack()" class="not-found__return-home">返回上一级</span>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  computed: {
    message() {
      return '页面丢失了......'
    }
  },
  methods:{
    goBack(){
      this.$router.back("-1")
    }
  }
}
</script>

<style lang="scss" scoped>
.main{
  background:#f0f2f5;
  margin-top: -20px;
  position: absolute;
  top:0;left:0;bottom:0;right:0;
  .http404 {
  width: 1100px;
  margin:100px auto;
  padding: 0 100px;
  overflow: hidden;
  .not-found {
    position: relative;
    float: left;
    width: 300px;
    padding: 150px 0;
    overflow: hidden;
    &__oops {
      font-size: 32px;
      font-weight: bold;
      line-height: 40px;
      color: #1482f0;
      opacity: 0;
      margin-bottom: 20px;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-fill-mode: forwards;
    }
    &__headline {
      font-size: 20px;
      line-height: 24px;
      color: #1482f0;
      opacity: 0;
      margin-bottom: 10px;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.1s;
      animation-fill-mode: forwards;
    }
    &__info {
      font-size: 13px;
      line-height: 21px;
      color: grey;
      opacity: 0;
      margin-bottom: 30px;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.2s;
      animation-fill-mode: forwards;
    }
    &__return-home {
      display: block;
      float: left;
      width: 110px;
      height: 36px;
      margin-right: 20px;
      background: #1482f0;
      border-radius: 100px;
      text-align: center;
      color: #ffffff;
      opacity: 0;
      font-size: 14px;
      line-height: 36px;
      cursor: pointer;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.3s;
      animation-fill-mode: forwards;
    }
    @keyframes slideUp {
      0% {
        transform: translateY(60px);
        opacity: 0;
      }
      100% {
        transform: translateY(0);
        opacity: 1;
      }
    }
  }
}
}


</style>
